<extend name="Public:base"/>

<block name="main">

<div id="yzh-content" class="col-xs-12">
    <div class="main-title">
        <h2>模版管理</h2>
    </div>

    <div class="table-actions">
        <a href="{:U('Template/index')}" class="btn btn-primary btn-sm">模板管理</a>
        <a href="{:U('Template/images')}" class="btn btn-primary btn-sm">风格管理</a>
        <a href="{:U('Template/config')}" class="btn btn-primary btn-sm">模板配置</a>
        <a href="{:U('Template/add')}" class="btn btn-primary btn-sm">新增</a>

        <div class="btn-group pull-right" role="group">
            <volist name="Lang" id="r">
                <a href="{:U('Template/index','l='.$r['mark'])}" class="btn btn-sm btn-primary <if condition="$l==$r['mark']">active</if>">{$r['name']}</a>
            </volist>
        </div>
    </div>

    <ul class="pic">
        <if condition="$leve">
        <li class="col-md-3">
            <span><a href="{:U($module_name.'/images?folder=')}{$uppath}"><img src="./Public/images/upback.gif"></a></span>
            <b><font color="#665aff">{:L(goback)}</font></b></li>
        </if>
        <volist name="folders" id="vo">
        <li>
        <span><a href="{:U($module_name.'/images?folder='.$_GET['folder'])}{$vo.filename}/"><img src="./Public/images/folder.gif"></a></span><b>{$vo.filename}</b><em><a href="javascript:confirm_delete('{:U('Template/images?delete=1&folder='.$_GET['folder'].'&filename='.$vo[filename])}')">{:L(delete)}</a></em></li>
        </volist>

        <volist name="files" id="vo">
        <li class="col-md-3">
        <span><a href="../Public/images/{$_GET['folder']}{$vo.filename}" target="_blank"><if condition="!empty($vo['ico'])"><img src="./Public/images/ext/{$vo['ext']}.png"><else /><img src="{$Public}images/{$_GET['folder']}{$vo.filename}" ></if></a></span><b>{$vo.filename}</b><em>
        <a href="javascript:confirm_delete('{:U('Template/images?delete=1&folder='.$_GET['folder'].'&filename='.$vo[filename])}')">{:L(delete)}</a></em></li>
        </volist>
      </ul>
</div>
</block>
